﻿using System;

namespace CsharpTrainer.Linq.Model
{
    public class EmployeeOrder
    {
        public string LastName { get; set; }
        public string FirstName { get; set; }
        public string Title { get; set; }
        public int OrderID { get; set; }
        public DateTime OrderDate { get; set; }

        public override string ToString()
        {
            string format = "Last Name: {0}\nFirst Name: {1}\n"
                          + "Title: {2}\nOrderID: {3}\nOrder Date:{4}\n";

            return string.Format(format, LastName, FirstName, Title, OrderID, OrderDate);
        }
    }
}
